<?php

namespace app\api\model;

use app\api\services\CacheServices;
use think\db\exception\DataNotFoundException;
use think\db\exception\ModelNotFoundException;
use think\exception\DbException;
use think\Model;

class SystemCity extends BaseModel
{
    protected $table = 'fa_system_city';

    /**
     * 获取城市数据列表
     * @param array $where
     * @param string $field
     * @return bool|\PDOStatement|string|\think\Collection
     * @throws DataNotFoundException
     * @throws ModelNotFoundException
     * @throws DbException
     */
    public static function getCityList(array $where, string $field = '')
    {
        return self::where($where)->field($field)->select();
    }
}